import 'package:json_annotation/json_annotation.dart';

part 'upload_img.g.dart';

@JsonSerializable()
class UploadImg {
  List<String>? url;
  String? name;

  UploadImg({
    this.url,
    this.name
  });

  factory UploadImg.fromJson(Map<String, dynamic> json) => _$UploadImgFromJson(json);

  Map<String, dynamic> toJson() => _$UploadImgToJson(this);

}

@JsonSerializable()
class ImgUrl {
  String? url;
  String? name;

  ImgUrl({
    this.url,
    this.name
  });

  factory ImgUrl.fromJson(Map<String, dynamic> json) => _$ImgUrlFromJson(json);

  Map<String, dynamic> toJson() => _$ImgUrlToJson(this);

}
